import React, { Component } from 'react'
import './index.css';

export default class Video extends Component {
    
    render() {
        return <div className="container">
            <video onClick={this.change} width="100%" autoPlay controls src={this.props.src}></video>
        </div>;
    }

    change = () => {
        this.props.change();
    }
}
